﻿using System;
using System.Xml;

namespace E.Web.Common
{
    public class XMLHelper
    {
        public static XmlNodeList GetXMLNodeList(string filePath)
        {
            XmlDocument xml = new XmlDocument();
            XmlNodeList node;
            try
            {
                xml.Load(filePath);
                node = xml.DocumentElement.ChildNodes;
            }
            catch (Exception e)
            {
                node = null;
            }
            return node;
        }
    }
}
